import request from '@/utils/request'

/* 列表分页*/
export function selectBomPage(data) {
  return request({
    url: '/erp/bom/selectBomPage',
    method: 'post',
    data: data
  })
}

/* 新增*/
export function saveBom(data) {
  return request({
    url: '/erp/bom/saveBom',
    method: 'post',
    data: data
  })
}

/* 修改*/
export function updateBomById(data) {
  return request({
    url: '/erp/bom/updateBomById',
    method: 'post',
    data: data
  })
}

/* 根据id查询*/
export function selectBomById(id) {
  return request({
    url: '/erp/bom/selectBomById/' + id,
    method: 'post'
  })
}

/* 删除*/
export function deleteBom(data) {
  return request({
    url: '/erp/bom/deleteBom',
    method: 'post',
    data: data
  })
}
